package com.travel.shop.controller;


import com.travel.entity.dto.ResultVO;
import com.travel.entity.shop.TravelShop;
import com.travel.shop.service.ITravelShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author muzi
 * @since 2021-04-15
 */
@RestController
@RequestMapping("/shop/travel-shop")
public class TravelShopController {

    @Autowired
    private ITravelShopService iTravelShopService;

    /**
     * 通过商家id查询商家信息
     * @param shopId
     * @return
     */
    @RequestMapping("/{shopId}")
    public ResultVO<TravelShop> findShopById(@PathVariable String shopId){
        return iTravelShopService.findShopById(shopId);
    }


}
